<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WAF信息实时查看</title>
    <script src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
</head>

<body>
    <div id="content">
        <p>id, uri, word, ip, method, time</p>
    </div>
</body>
<script>
    send_warn_info = () => {
        fetch('http://115.227.19.111:41065/www/apache/waf.php?arg=getInfo')
            .then(response => response.json())
            .then(result => {
                result.forEach(element => {
                    $('#content').append(`<p>${element}</p>`)
                });
            })
            .catch(error => {
                console.error('Error:', error)
            });
    }
    send_warn_info()
    setInterval(function () {
        window.location.reload();
    }, 5000)

</script>

</html>